package com.ruoyi.business.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("banner图表")
public class Banner extends BaseEntity {
    /**
     * bannerId
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "bannerId")
    private Long id;

    /**
     * banner类型
     */
    @Excel(name = "banner类型")
    @ApiModelProperty(value = "banner类型")
    private String type;
    /**
     * banner图片
     */
    @Excel(name = "banner图片")
    @ApiModelProperty(value = "banner图片")
    private String image;

    /**
     * banner标题
     */
    @Excel(name = "banner标题")
    @ApiModelProperty(value = "banner标题")
    private String title;

    /**
     * banner内容
     */
    @Excel(name = "banner内容")
    @ApiModelProperty(value = "banner内容")
    private String content;

    /**
     * banner关联Id
     */
    @Excel(name = "banner关联Id")
    @ApiModelProperty(value = "banner关联Id")
    private Long relevanceId;

    @Excel(name = "banner状态", readConverterExp = "0=正常,1=停用")
    @ApiModelProperty(value = "banner状态")
    private String status;

    /**
     * 创建人
     */
    @Getter
    @Excel(name = "创建人")
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 更新人
     */
    @Getter
    @Excel(name = "更新人")
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }


}
